From: Keir Fraser Date: Wed, 3 Feb 2010 09:42:45 +0000 (+0000) Subject: tools/xen-detect: fix printing xen version X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12658 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=1921835bf441b67b4d35b1e49ef32163359a7752;p=xen.git tools/xen-detect: fix printing xen version check_for_xen() should return xen version rather than boolean true if signature XenVMM is found. Signed-off-by: Yu Zhiguo --- diff --git a/tools/misc/xen-detect.c b/tools/misc/xen-detect.c index 1a1607fa85..3e8f2d9f07 100644 --- a/tools/misc/xen-detect.c +++ b/tools/misc/xen-detect.c @@ -69,7 +69,7 @@ static int check_for_xen(int pv_context) found: cpuid(base + 1, &eax, &ebx, &ecx, &edx, pv_context); - return 1; + return eax; } static jmp_buf sigill_jmp;